package tech.aistar.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import tech.aistar.entity.dynamic.Video;

import java.util.List;

/**
 * Created by David on 2019/9/27.
 */
public interface VideoMapper {

    @Select("select * from video where id=#{value}")
    List<Video> findAllById(Integer id);

    @Insert("insert into video values(#{videoId},#{id},#{videoData},#{videoTitle})")
    void addVideo(Video video);
}
